package br.elsa.survey.domain.questions;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "radio_questions", schema = "survey")
@DiscriminatorValue("RADIO_QUESTION")
public class RadioQuestion extends MultipleChoiceQuestion<RadioOption> {

	private static final long serialVersionUID = 2212202161598122019L;

	public void createNewEmptyOption() {

		RadioOption option = new RadioOption();
		option.setQuestion(this);

		options.add(option);
	}
}
